<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<body>
	<form action="brandList" method="post">
		<div align="center">
			 品牌名称:<input type="text" name="name"/>
			 <input type="submit" value="查询" />
			 <a href="addBrand.jsp">添加</a>
		</div>
	</form>
	<table border="1" align="center" width="450">
		<tr>
			<td>编号</td>
			<td>品牌名称</td>
			<td>图片</td>
			<td>产地</td>
			<td>简介</td>
			<td>操作</td>
		</tr>
		<c:forEach var="b" items="${list}">
			<tr>
				<td>${b.id}</td>
				<td>${b.name}</td>
				<td>${b.img}</td>
				<td>${b.place}</td>
				<td>${b.description}</td>
				<td>
				   <a href="updateBrand?id=${b.id}">修改</a>
				   <a href="deleteBrand?id=${b.id}">删除</a>
				</td>
			</tr>
		</c:forEach>
	</table>
	<div class="page">
				<a href="brandList?name=${b.name}">首页</a> 
				<a href="brandList?pageIndex=${pageIndex-1}&name=${b.name}">上一页</a> 
				<a href="brandList?pageIndex=${pageIndex+1}&name=${b.name}">下一页</a> 
				<a href="brandList?pageIndex=${pageCount}&name=${b.name}">尾页</a>
			</div>
</body>
</html>
